<template>
  <i-biz-nav-pos-index
    v-if="modelData.rawItem?.predefinedType === 'NAV_POS_INDEX'"
    v-bind="$props"
  />
  <i-biz-panel-raw-item v-else v-bind="$props" />
</template>
<script lang="ts">
export default {
  options: {
    addGlobalClass: true,
    virtualHost: true,
    styleIsolation: "shared"
  }
}
</script>
<script setup lang="ts">
import { IPanelRawItem } from "@ibiz/model-core";
import { calcAttrs } from "@/utils";
import { useNamespace } from "@/use";
import { PropType } from "vue";
import { IPanelItemController } from "@ibiz-template/runtime";

const props = defineProps({
  modelData: {
    type: Object as PropType<IPanelRawItem>,
    required: true,
  },
  controller: {
    type: Object as PropType<IPanelItemController>,
    required: true,
  },
});
</script>
